import request from "@/config/axios";

const baseUrl = "http://localhost:3000/dev-api/suggestions";

// 分页列留言
export const fetchGetSuggestionList = (params: any) => {
  return request.get({ url: `${baseUrl}/list`, params });
};

// 新增留言
export const fetchPostSuggestion = (data: any) => {
  return request.post({ url: `${baseUrl}`, data });
};

// 删除留言
export const fetchDeleteSuggestion = (data: any) => {
  return request.delete({ url: `${baseUrl}`, data });
};
